package com.yuanzhi.smart

fun sum(a: Int, b: Int): Int {
    return a + b
}

public fun logFun(): String{
    val x: String
    println("nothing to do.")
    x = "nothing"
    return x
}

class Greet(val name: String) {
    fun greet() {
        println("hello $name")
    }
}

fun main(args: Array<String>) {
    Greet("world!").greet()

    println("a + b = " + sum(2, 9))

    println("x = " + logFun())
}